package cn.k23.mapper;
import cn.k23.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
 * @Description:
 * @Author: k23
 * @Date: 2022-03-30 11:20
 * @Version: 1.0
 */
@Service
public interface UserMapper {
    @Select("select * from t_user")
    public List<User> queryAll();

    public int login(@Param("account") String account, @Param("passwd") String password);

    @Select("select passwd from t_user where account = #{account}")
    public String queryPassword(String account);

    public int updatePassword(@Param("account") String account, @Param("passwd") String password);

    @Select("select * from t_user where account = #{account}")
    public User queryByAcoount(String account);
}